package com.hutao.manage.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.hutao.manage.pojo.ScanFile;

public interface ScanFileMapper {

    int deleteByPrimaryKey(String fileHash);

    int insert(ScanFile record);

    int insertSelective(ScanFile record);


    ScanFile selectByPrimaryKey(String fileHash);



    int updateByPrimaryKeySelective(ScanFile record);

    int updateByPrimaryKey(ScanFile record);
    
    List<Map<String,Object>> getFileMsgList(@Param("uploadScanId")Integer uploadScanId);
    
    
    List<Map<String,Object>> getFileMsgListByFirstGuid(@Param("firstGuid")String firstGuid);
    
    
    int getCountByFileHash(@Param("fileHash")String fileHash);
    
    List<Map<String,Object>> getPaginationScanFilesByFirstGuid(@Param("firstGuid")String firstGuid);
    
    
    List<Map<String,Object>> getPaginationScanFilesByFirstGuidAndPagination(@Param("firstGuid")String firstGuid,@Param("paginationStatus")String paginationStatus,@Param("unPaginationStatus")String unPaginationStatus);
    
    
    
    List<Map<String,Object>> getPaginationScanFilesByFirstGuidAndPrinterTypeId(@Param("firstGuid")String firstGuid,@Param("printerTypeId")Integer printerTypeId);
    
    List<Map<String,Object>> getPreviewScanFilesByFirstGuid(@Param("firstGuid")String firstGuid);
    
    int  getPaginationFileCount(@Param("firstGuid")String firstGuid,@Param("unPaginationStatus")String unPaginationStatus);
    
    Map<String,Object> selectScanFileByFileHash(@Param("fileHash")String fileHash);
    
    int getPaginationScanWorkStaticCountByNameAndScanDate(@Param("name") String name, @Param("scanStartDate") String scanStartDate, 
    		@Param("scanEndDate") String scanEndDate);

    
    
    
    
    
    
    
    
    
}




